import pandas as pd

# 定义数据
data = {
    '-flto': {
        'Richards': [271, 278, 280, 278, 277],
        'DeltaBlue': [289, 289, 289, 290, 289],
        'Crypto': [330, 329, 328, 328, 329],
        'RayTrace': [424, 421, 432, 418, 419]
    },
    '-O3': {
        'Richards': [154, 159, 158, 159, 159],
        'DeltaBlue': [176, 178, 178, 177, 179],
        'Crypto': [200, 199, 200, 193, 200],
        'RayTrace': [295, 296, 297, 296, 299]
    },
    '-Ofast': {
        'Richards': [158, 159, 160, 160, 158],
        'DeltaBlue': [178, 179, 179, 179, 180],
        'Crypto': [201, 201, 201, 201, 200],
        'RayTrace': [297, 298, 298, 299, 298]
    },
    '-fomit-frame-pointer': {
        'Richards': [157, 160, 159, 158, 160],
        'DeltaBlue': [178, 180, 177, 178, 180],
        'Crypto': [201, 200, 201, 201, 201],
        'RayTrace': [297, 299, 299, 297, 299]
    },
    '-ffast-math': {
        'Richards': [161, 161, 162, 162, 161],
        'DeltaBlue': [182, 181, 182, 181, 182],
        'Crypto': [204, 203, 203, 201, 203],
        'RayTrace': [304, 304, 303, 305, 303]
    },
    '-fvisibility-hidden': {
        'Richards': [156, 158, 159, 159, 159],
        'DeltaBlue': [178, 180, 179, 178, 180],
        'Crypto': [199, 199, 198, 201, 200],
        'RayTrace': [296, 294, 294, 300, 297]
    },
    '-fno-plt': {
        'Richards': [155, 157, 158, 157, 157],
        'DeltaBlue': [174, 175, 176, 175, 175],
        'Crypto': [193, 192, 193, 193, 193],
        'RayTrace': [297, 296, 298, 300, 300]
    }
}

# 创建 DataFrame 并显示
for option, values in data.items():
    df = pd.DataFrame(values)
    df.index = ['Run 1', 'Run 2', 'Run 3', 'Run 4', 'Run 5']
    print(f"Table for {option}:")
    print(df)
    print("\n")  # 添加一个空行以区分不同的表格
